<div class="tableToolbar">
    <div class="coll-md-9" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="图片名称" ng-model="ctrlScope.itemsearch.name">
        </div>
        <div class="coll-md-4 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>状态</th>
        <th>添加时间</th>
        <th>添加ip</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.name}}</td>
        <td>{{item.status | pictureStatus}}</td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.addip}}</td>
        <td>
        	<a ng-click="modifyModal(item.id)">编辑</a>
        </td>
    </tr>
    </tbody>
</table>
<modal title="编辑" visible="detailsModal">
    <form class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">名称：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="list.name" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">状态：</label>
                        <div class="col-md-8 triangle-left">
                        	<select ng-model="list.status" class="form-control" ui-select2="select2Options">
                        		<option value="1">开启</option>
                        		<option value="0">关闭</option>
                        	</select> 
                        </div>
                    </div>
                </div>
                <input type="hidden" ng-model="list.id" />
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-click="saveSubmit()">保存</button>
            </div>

        </div>
    </form>
</modal>
